### EmotionController.gd
extends Node
var default_emotion := "idle"

@onready var anim_sprite := $AnimatedSprite2D

func _ready():
	anim_sprite.play(default_emotion)

func play_emotion(emotion: String):
	#if anim_sprite.has_animation(emotion):
	anim_sprite.play(emotion)


func play_default():
	play_emotion(default_emotion)

func surprise():
	play_emotion("surprised")
	await get_tree().create_timer(1.5).timeout
	play_default()
